import {createRouter, createWebHistory} from 'vue-router'
import Home from "@/views/Home.vue";
import AddressList from "@/views/AddressList.vue";
import AddAddress from "@/views/AddAddress.vue";
import Detail from "@/views/Detail.vue";
import Success from "@/views/Success.vue";

const routes = [
    {
        path: '/',
        name: 'home',
        component: Home
    },
    {
        path: '/addressList',
        name: 'addressList',
        component: AddressList
    },
    {
        path: '/addAddress',
        name: 'addAddress',
        component: AddAddress
    },
    {
        path: '/detail',
        name: 'detail',
        component: Detail
    },
    {
        path: '/success',
        name: 'success',
        component: Success
    },

]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
